<?php
namespace app\common\validate;

use think\Validate;

class Goods extends Validate{

    protected $rule = [
        'goods_name'=>'require',
        'goods_price'=>'require',
        'content'=>'require',
        'images'=>'require'
    ];

    protected $message = [
        'goods_name.require'=>'请输入商品名称',
        'goods_price.require'=>"请输入商品价格",
        'content.require'=>'请输入商品详情',
        'images.require'=>'请上传商品主图'
    ];

    protected $scene = [

    ];

}